package platform.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 对象映射配置
 *
 * @author roamer
 * @version V1.0
 * @date 2019-02-24 17:12
 */
@Configuration
public class ObjectMapperConfigContext {

    /**
     * Json转换
     *
     * @return {@code ObjectMapper}
     */
    @Bean
    public ObjectMapper objectMapper() {
        return new ObjectMapper();
    }
}
